<div class="tms-main-page-function">
    <div class="main-content" style="height:auto">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="shipmentReject()">驳回</button>
            </ul>
            <div class="wms-wbm-fun-right">
                <input type="text" placeholder="组版号-->回车查询" ng-model="search.spGroupBoardNo" ng-keydown="searchListKeyDown($event)" class="search-input">
                <button class="layui-btn" ng-click="moreClick()" ng-bind="moreText">更多条件</button>
                <i class="iconfont icon-shuaxin layui-anim layui-anim-loop layui-anim-rotate wms-refresh" ng-click="refreshClick()" refresh></i>
            </div>
        </div>
        <div class="otherForm" ng-show="otherForm" >
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>订单号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.spOrderNo" />
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>发货仓库</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.spDeliverWarehouseCode"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>承运商</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.spCarrier"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>状态</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.shipmentPlanStatus">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="item in dropDownList.shipmentPlanStatus">
                                    <span ng-bind="item.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>发运类型</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.shipmentPlanType">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="item in dropDownList.shipmentPlanType">
                                    <span ng-bind="item.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>是否有驳回</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.shipmentRejectStatus">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="item in dropDownList.shipmentRejectStatus">
                                    <span ng-bind="item.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>创建日期</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.startCreateTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.endCreateTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>
        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table minScreen serial shipmentPlanRejectTable sprlTable">
                <tbody>
                    <tr>
                        <th>
                            <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </th>
                        <th>组版单号</th>
                        <th>订单号</th>
                        <th>状态</th>
                        <th>是否有驳回</th>
                        <th>驳回数量</th>
                        <th>组版数量</th>
                        <th>创建时间</th>
                        <th>发运类型</th>
                        <th>发货仓库</th>
                        <th>承运商</th>
                    </tr>
                    <tr ng-repeat="shipmentPlanReject in shipmentPlanRejectList" ng-click="selectItemClick($event,shipmentPlanReject.spId)" id="{{shipmentPlanReject.spId}}" status1="{{shipmentPlanReject.spSendBusinessFlag}}" repeat-finish >

                        <td>
                            <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </td>
                        <td ng-bind="shipmentPlanReject.spGroupBoardNo"></td>
                        <td ng-bind="shipmentPlanReject.spOrderNo"></td>
                        <td ng-bind="shipmentPlanReject.spSendBusinessFlag|aFilter"></td>
                        <td ng-bind="shipmentPlanReject.spIsReject|bFilter"></td>
                        <td ng-bind="shipmentPlanReject.spRejectNum"></td>
                        <td ng-bind="shipmentPlanReject.spGroupBoardQuantity"></td>
                        <td ng-bind="shipmentPlanReject.gmtCreate"></td>
                        <td ng-bind="shipmentPlanReject.spDlvType|cFilter"></td>
                        <td ng-bind="shipmentPlanReject.spDeliverWarehouseName"></td>
                        <td ng-bind="shipmentPlanReject.spCarrier"></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pageOne" class="page">
            </div>
        </div>
    </div>

    <div class="main-content" style="height:50%">
        <blockquote class="layui-elem-quote" style="margin-bottom: 15px;">备料任务明细</blockquote>
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="taskCancelClick()">任务取消</button>
                <button class="layui-btn" ng-click="outBoundChangeClick()">系统自动换车</button>
                <button class="layui-btn" ng-click="manualChangeClick()">手工指定换车</button>
                <!--<button class="layui-btn">备料退库</button>-->
            </ul>
        </div>
        <div class="otherForm" ng-show="otherForm">
        </div>
        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table minScreen outboundTable sprlTableTwo">
                <tbody>
                <tr>
                    <th>
                        <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                        <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                            <i class="layui-icon"></i>
                        </div>
                    </th>
                    <th>车架号(VIN码)</th>
                    <th>车型</th>
                    <th>状态</th>
                    <th>检验结果</th>
                    <th ng-show="false">检验描述</th>
                    <th>换车标识</th>
                    <th>换车车架号(VIN)</th>
                    <th>任务取消原因</th>
                    <th>备料任务号</th>
                    <th>备料单号</th>
                    <th>交接单号</th>
                    <th>创建时间</th>
                </tr>
                <tr ng-repeat="(key,item) in queryDetailListsprl" id="{{item.taskId}}" status1="{{item.status}}" isRejected="{{item.needChange}}" ng-click="sprlTrSelect($event,key)" repeat-finish id="{{item.taskId}}" >
                    <td>
                        <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                        <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                            <i class="layui-icon"></i>
                        </div>
                    </td>
                    <td>{{item.vin}}</td>
                    <td>{{item.vehicleName}}</td>
                    <td>{{item.status | dFilter}}</td>
                    <td>{{item.checkDest}}</td>
                    <!--<td>{{item.checkResult | eFilter}}</td>-->
                    <!--<td>{{item.checkDest}}</td>-->
                    <td>{{item.needChange | fFilter}}</td>
                    <td>{{item.changeVin}}</td>
                    <td>{{item.cancleReason}}</td>
                    <td>{{item.taskNo}}</td>
                    <td>{{item.materOrderNo}}</td>
                    <td>{{item.handoverNo}}</td>
                    <td>{{item.createDate}}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>

